﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 第三章
{
    public partial class _3__7 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            //被除数
            double dividend = 0;

            //除数
            double divisor = 0;
            try
            {
                dividend = double.Parse(this.TXTdividend.Text);
                divisor = double.Parse(this.TXTdivisor.Text);
            }
            catch (Exception)
            {
                Response.Write("请输重新输入数字！");
                return;
            }
            Response.Write(String.Format("{0}/{1}={2}",dividend,divisor,(dividend / divisor)));


        }
    }
}